home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / pyshared / aptdaemon / loop.py < prev    next >
Text File  |  2009-10-14  |  1KB  |  31 lines

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """Main loop for aptdaemon."""
  4. # Copyright (C) 2008-2009 Sebastian Heinlein <devel@glatzor.de>
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License along
  17. # with this program; if not, write to the Free Software Foundation, Inc.,
  18. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19.  
  20. __author__  = "Sebastian Heinlein <devel@glatzor.de>"
  21.  
  22. import gobject
  23.  
  24. mainloop = gobject.MainLoop()
  25.  
  26. def get_main_loop():
  27.     """Return the gobject main loop as a singelton."""
  28.     return mainloop
  29.  
  30. # vim:ts=4:sw=4:et
  31.